package sicnu.cs.aps.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import sicnu.cs.aps.domain.entity.TeamMember;

import java.util.List;

/**
 * @author chengke
 * @version 1.0
 * @description 队长邀请成员mapper
 * @date 2022/5/29 15:11
 */
public interface TeamMemberMapper extends BaseMapper<TeamMember> {


    Integer isInvited(@Param("teamMemberId") Long teamMemberId, @Param("activityId") Long activityId);

    /**
     * 列出在小队的所有成员信息
     * @param teamId 小队id
     * @return 小队成员信息
     */
    List<TeamMember> listUserInTeam(@Param("teamId") Long teamId);
}
